package com.crop.back.service;

import com.crop.back.entity.Qrcode;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crop.back.entity.QrcodeData;
import com.crop.back.vo.QrcodeVo;
import com.google.gson.JsonObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.time.LocalDateTime;

/**
 * <p>
 * 二维码表 服务类
 * </p>
 *
 * @author 作者
 * @since 2025-01-20
 */
public interface QrcodeService extends IService<Qrcode> {
    String generateQrcode(Long batchId);
    QrcodeData verifyQrcode(String encryptedData);
    QrcodeVo getQrcodeVoByBatchId(Long batchId);
    Page<Qrcode> getQrcodeList(Integer status, Long batchId, LocalDateTime validUntil, Integer page, Integer size);
    void updateStatus(Long id, Integer status);
}
